import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class RockolaControlMIDlet extends MIDlet {
	private Display display;
        FileBrowsingCanvas fb;

	public void startApp() {
    	UtilRMS.openRecStore();
    	
        fb = new FileBrowsingCanvas(this);
        
        if(display==null){
        	display = Display.getDisplay(this);   
        }
        
        display.setCurrent(fb);        
    }
    
    public void pauseApp() {
        fb.pause();
        UtilRMS.closeRecStore();  // Close record store
    }
    
    public void destroyApp(boolean unconditional) {
        fb.salir();
        UtilRMS.closeRecStore();  // Close record store
    }
}
